* net/tramp.el (tramp-do-copy-or-rename-file-directly): Set file
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 29 Jun 2009 21:05:05 +0000 (21:05 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 29 Jun 2009 21:05:05 +0000 (21:05 +0000)
modes mandatory.  (Bug#3712)

lisp/net/tramp.el

index 5b51d6cc966318815f9fffc027626148ecf1c740..fdc1e276994b66fd83148b7f25d69d0e39ea2532 100644 (file)
@@ -3336,9 +3336,8 @@ the uid and gid from FILENAME."
                  (error)))))))))
 
       ;; Set the time and mode. Mask possible errors.
-      ;; Won't be applied for 'rename.
       (condition-case nil
-         (when (and keep-date (not preserve-uid-gid))
+         (when keep-date
            (set-file-times newname (nth 5 (file-attributes filename)))
            (set-file-modes newname (tramp-default-file-modes filename)))
        (error)))))